import Mock from 'mockjs'

// 进度条测试
Mock.mock('/test/progress', 'get', {
  code: 200,
  data: {
    'percentage': 60
  }
})

Mock.mock('/user/test', 'get', {
  code: 200,
  data: {
    'name': 'hahahha',
    'age': 13
  }
})

// 登录
Mock.mock('/login', 'get', {
  code: 200,
  data: {
    'username': 'li',
    'role': 'admin',
    'token': 'asafaferfwegheh'
  }
})

// admin的权限菜单
Mock.mock('/getAdminPermission', 'get', {
  code: 200,
  data: {}
})